<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>雷谛科技</title>
<script type="text/javascript">
     //调用微信JS api 支付
     function jsApiCall()
     {
         WeixinJSBridge.invoke(
             'getBrandWCPayRequest',
             {{ $jsApiParameters }},
             function(res){
                 WeixinJSBridge.log(res.err_msg);
                 if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                    window.location.href="{{ route('commodities.success') }}";
                 }
             }
         );
     }

     function callpay()
     {
         if (typeof WeixinJSBridge == "undefined"){
             if( document.addEventListener ){
                 document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
             }else if (document.attachEvent){
                 document.attachEvent('WeixinJSBridgeReady', jsApiCall);
                 document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
             }
         }else{
             jsApiCall();
         }
     }
 </script>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/reset.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/root.css') }}" />
<link rel="stylesheet" href="{{ URL::asset('front/fonts/font-awesome.min.css') }}">
<script type="text/javascript" src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('front/js/toogle.js') }}"></script>
<style>
#header{
  line-height: 44px;
  background: #609ee8;
  text-align: center;
  position: relative;
}
#header h3{
  color: #fff;
  font-weight:normal;
  padding: 0;
}
#header a img.personal{
  position: absolute;
  bottom: 14px;
  right: 10px;
}
#header a img.arrow_left{
  position: absolute;
  bottom: 14px;
  left: 22px;
}
#header a.question{
  position: absolute;
  right: 20px;
  bottom: 12px;
}
</style>
</head>
<body>

    <!-- start header -->
<header id="header">
    <a href="http://www.pengup.com/buyrecords">
        <img src="http://www.pengup.com/newstyle/images/arrow_left.png" alt="" width="8" class="arrow_left">
    </a>
    <h3>购买</h3>
    <a href="http://crm.leaderphos.com/customers">
      <img src="http://crm.leaderphos.com/newstyle/images/icon3.png" alt="" width="15" class="personal">
    </a>
</header>
    <!-- end header -->


    <!-- start page -->
    <div class="page">


            <div class="simplebox">
            	<h1 class="titleh">微信支付</h1>
                <div class="content">

                {{ Form::model($page, array('method' => 'put', 'route' => array('mounts.update', $mount->id),'id'=>'pages')) }}
                <input type="hidden" name="type" value="{{ $type }}" >
                    <h5>购买信息</h5>
                    <ul class="list-plus">
                      <li><b>商品：</b> {{ $commodity->name }}</li>
                      <li><b>价格：</b> {{ $commodity->member_price }}</li>
                      <li><b>联系人：</b> {{ $buyrecord->name }}</li>
                      <li><b>联系电话：</b> {{ $buyrecord->mobile}}</li>
                      <li><b>地址：</b> {{ $buyrecord->address }}</li>
                    </ul>


                    <div class="form-line">
                    <input type="button" onclick="callpay()" name="button" id="button" value="&nbsp;确 认 支 付&nbsp;" class="submit-button" />
                    <input type="button" name="button" id="button2" value="&nbsp;返 回&nbsp;" class="reset-button" />
                    </div>

                {{ Form::close() }}

                </div>
      </div>






            <!-- start top button -->
            <div class="topbutton"><a href="#header"><span>Top</span></a></div>
            <!-- end top button -->



            <!-- start footer -->
            <div class="footer">
            © 2014 - 2015  邦顶科技 <a href="http://www.o2bang.com">www.o2bang.com</a> </div>
            <!-- end footer -->




    <div class="clear"></div>
    </div>
    <!-- end page -->

<script type="text/javascript" src="{{ URL::asset('front/js/frame.js') }}"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".agreement").click(function(){
    $(".agreement_content").slideToggle();
  });
});

$("#slideup").click(function(){
  $(".agreement_content").slideUp();
});
</script>
</body>
</html>
